package com.nku.mason.scm.service;

import com.nku.mason.scm.vo.PageBean;

public interface BaseService<T> {
	//添加实体信息到表中
	public int insert(T entity) throws Exception;

	//更新表中实体信息
	public int update(T entity) throws Exception;
	
	//删除表中实体信息
	public int delete(T entity) throws Exception;
	//根据主键批量删除表中信息
	public int deleteByPks(String[] pks) throws Exception;
	
	//查找实体
	public T select(T entity) throws Exception;
	
	//分页查询
	public PageBean<T> selectPage(PageBean<T> pageBean) throws Exception;
}
